@charset "utf-8";
.rulesTree {
  width: 100%;
  height: 100%;
  //border: 1px solid #ccc;
  border-top: none;
  //overflow-y: scroll;
  //border-bottom: none;
  .treeTitle {
    height: 46px;
    border-bottom: 1px solid #ddd;
    padding: 5px 10px;
    background-color: rgb(245, 245, 245);
    a {
      font-size: 14px;
      line-height: 36px;
      color: #333;
      display: inline-block;
      //padding-left: 52px;
      text-align: center;
      width: 100%;
      img {
        position: absolute;
        left: 0;
        top: 0;
        height: 36px;
        width: auto;
        //transition: all .5s;
        //transform: rotate(0deg);
      }
      &:hover img {
        -webkit-animation-name: rotate360;
        animation-name: rotate360;
        -webkit-animation-duration: .5s;
        animation-duration: .5s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
      }
    }
  }
  .ruleTreeListBox{
    overflow-y: scroll;
  }
  .treeTitle.rulesATitle {
    background: #ff5151;
    a {
      font-size: 16px;
      color: #fff;
    }
  }
  .lotteryTreeList {
    overflow: hidden;
    .treeListTitle {
      width: 100%;
      height: 46px;
      display: inline-block;
      border-bottom: 1px solid #ddd;
      padding: 5px 10px;
      background-color: rgb(245, 245, 245);
      font-size: 14px;
      line-height: 36px;
      color: #333;
      float: left;
      img {
        height: 36px;
        width: 36px;
        float: left;
        transition: all .5s;
        transform: rotate(0deg);
        display: inline-block;
        vertical-align: middle;
        margin-right: 16px;
      }
      &:hover {
        cursor: pointer;
        opacity: 0.9;
      }
      &:hover img {
        -webkit-animation-name: rotate360;
        animation-name: rotate360;
        -webkit-animation-duration: .5s;
        animation-duration: .5s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
      }
      .downArrow {
        position: absolute;
        right: 10px;
        top: 50%;
        transition: all .3s;
        transform: translateY(-50%);
        &.upArrow{
          transform: translateY(-50%) rotate(180deg);
        }
      }

    }
    .treeListTitle.on {
      color: #ff5151;
    }
    .secondTree{
      display: none;
      float: right;
      width: 100%;
    }
    .secondTreeList{
      border-bottom: 1px dashed #ddd;
      height: 46px;
      a{
        height: 46px;
        width: 100%;
        color: #666;
        display: inline-block;
        padding: 5px 10px;
        font-size: 14px;
        line-height:36px;
        padding-left:26px;
        img{
          height: 36px;
          width: 36px;
          float: left;
          transition: all .5s;
          transform: rotate(0deg);
          display: inline-block;
          vertical-align: middle;
          margin-right: 8px;
        }
        &:hover img {
          -webkit-animation-name: rotate360;
          animation-name: rotate360;
          -webkit-animation-duration: .5s;
          animation-duration: .5s;
          -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
        }
      }
      &:last-child{
        border-bottom:none;
      }
      &.on{
        a{
          color: #ff5151;
        }
      }
    }
  }
}
@keyframes rotate360 {
  from{
    transform: rotate(0);
  }
  to{
    transform: rotate(360deg);
  }

}
